package com.hdoit.apollo.logical.shop.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tennetcn.data.dao.base.impl.SuperService;
import com.hdoit.apollo.logical.shop.dao.ISupplyCargoDao;
import com.hdoit.apollo.logical.shop.model.SupplyCargo;
import com.hdoit.apollo.logical.shop.service.ISupplyCargoService;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月22日 11:58:11
 * @comment
 */
@Component
public class SupplyCargoServiceImpl extends SuperService<SupplyCargo> implements ISupplyCargoService{

	@Autowired
	private ISupplyCargoDao supplyCargoDao;
	
	@Override
	public List<SupplyCargo> queryListBySupplierId(String supplierId) {
		
		return supplyCargoDao.queryListBySupplierId(supplierId);
	}

	@Override
	public boolean deleteSupplyCargoByKey(String key) {
		
		return supplyCargoDao.deleteSupplyCargoByKey(key);
	}

	@Override
	public SupplyCargo checkSupplyCargo(String supplierId, String cargoId, String collocationId) {
		return supplyCargoDao.checkSupplyCargo(supplierId,cargoId,collocationId);
	}

}